/*

 */
package com.insigma.business.qrcode.soldier.service.impl;


import com.insigma.business.qrcode.soldier.dao.CachedObjDao;
import com.insigma.business.qrcode.soldier.entity.CachedObjDO;
import com.insigma.business.qrcode.soldier.service.CachedObjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("cachedObjService")
public class CachedObjServiceImpl implements CachedObjService {

    @Autowired(required = false)
    private CachedObjDao cachedObjDao;

    
    @Override
    public CachedObjDO get(final String id){
        return cachedObjDao.get(id);
    }

    
    @Override
    public CachedObjDO getBySystemType1Key(final String systemType, final String key) {
        return cachedObjDao.getBySystemType1Key(systemType, key);
    }

    
    @Override
    public CachedObjDO getByKey(final String key) {
        return cachedObjDao.getByKey(key);
    }

    
    @Override
    public int insert(final CachedObjDO cachedObj){
        return cachedObjDao.insert(cachedObj);
    }

    
    @Override
    public int update(final CachedObjDO cachedObj){
        return cachedObjDao.update(cachedObj);
    }

    
    @Override
    public int refreshTimeout(final CachedObjDO cachedObj) {
        return cachedObjDao.refreshTimeout(cachedObj);
    }

    
    @Override
    public int delete(final String id, final String operatorType, final String operatorId){
        return cachedObjDao.delete(id,operatorType,operatorId);
    }

    
    @Override
    public int deleteByCacheKey(final String cachedKey, final String operatorType, final String operatorId) {
        return cachedObjDao.deleteByCacheKey(cachedKey,operatorType,operatorId);
    }

}
